export default [
  {
    path: '/system',
    component: 'Layout',
    redirect: '/system/index',
    meta: {
      title: '设置',
      icon: 'tune-vertical'
    },
    children: [
      {
        path: 'user_role',
        name: 'SystemUserRole',
        component: 'system/user_role',
        meta: {
          title: '用户角色设置',
          icon: 'account-network',
          btn: [
            { component: 'system/user_role:add', meta: { title: '添加' }},
            { component: 'system/user_role:edit', meta: { title: '修改' }},
            { component: 'system/user_role:delete', meta: { title: '删除' }}
          ]
        }
      },
      {
        path: 'user_group',
        name: 'SystemUserGroup',
        component: 'system/user_group',
        meta: {
          title: '用户组设置',
          icon: 'account-group',
          btn: [
            { component: 'system/user_group:add', meta: { title: '添加' }},
            { component: 'system/user_group:edit', meta: { title: '修改' }},
            { component: 'system/user_group:delete', meta: { title: '删除' }}
          ]
        }
      },
      {
        path: 'permission',
        name: 'SystemPermission',
        component: 'system/permission',
        meta: {
          title: '权限设置',
          icon: 'lock-reset',
          btn: [
            { component: 'system/permission:edit', meta: { title: '修改' }},
            { component: 'system/permission:update', meta: { title: '保存' }}
          ]
        }
      }
    ]
  },
  {
    path: '/example',
    component: 'Layout',
    redirect: '/example/workflow',
    meta: {
      title: '组件',
      icon: 'more'
    },
    children: [
      {
        path: 'workflow',
        name: 'Workflow',
        component: 'example/workflow/index',
        meta: {
          title: '工作流',
          icon: 'sitemap',
          btn: []
        }
      },
      {
        path: 'h5_factory',
        name: 'H5Factory',
        component: 'example/h5_factory/index',
        meta: {
          title: 'H5工厂',
          icon: 'codepen',
          btn: []
        }
      }
    ]
  }
]
